package com.lheia.jcb.spider

import generate.annotation.Column
import generate.annotation.Table

/**
 * 爬虫记录
 */
@Table(nameCN="爬虫记录")
class UrlProcess {
    @Column(nameCN="标题",isQuery = true )
    String tiltle
    @Column(nameCN="链接",isQuery = true )
    String url
    @Column(nameCN="爬虫名称",isQuery = true )
    String spiderName
    @Column(nameCN="数据来源",isQuery = true )
    String dataAuthor
    /**
     * 删除标记
     */
    Boolean ifDel = false

    /**
     * 创建日期
     */
    Date dateCreated
    /**
     * 修改日期
     */
    Date lastUpdated
    static mapping = {
        url column: "document_url", sqlType: "LONGTEXT"
    }
    static constraints = {
        tiltle nullable: true
        url nullable: true
        spiderName nullable: true
        dataAuthor nullable: true
        ifDel nullable: true
        dateCreated nullable: true
        lastUpdated nullable: true
    }
}
